{{indexmenu_n>5}}
====== Indexmenu Plugin ======

The Indexmenu Plugin powers the left navigation expandable TOC. The hidden page [[:opencpn:sidebar|sidebar]] is used by the Indexmenu Plugin to provide the left navigation menu. DO NOT REMOVE OR CHANGE WITHOUT KNOWING WHAT YOU ARE DOING. Thank you. - You can open it and see the code used at the top of the page

NOTE: Most Editors will not need to know more than this. Other than [[opencpn:edit_user_manual:fix_sorting|Fix new page sorting]]  Because of the way Indexmenu sorts new pages without sub-pages need some special treatment.

==== Navigation and Table of Contents ====

We are trying the following Indexmenu configuration & settings:

<code>
Page Sort order set with {{indexmenu_n>[order number] }}
</code>
In Configuration > Sidebar [[https://www.dokuwiki.org/config:sidebar|https://www.dokuwiki.org/config:sidebar]]\\
<code>
In Configuration > Indexmenu  plugin»indexmenu»page_index enter :opencpn:sidebar
</code>
The Indexmenu Plugin uses the hidden [[:opencpn:sidebar|opencpn:sidebar]] page to provide the Left Navigation Menu.\\
<code>
At top of sidebar page {{indexmenu>:opencpn#1|js#drktheme navbar msort nsort}}
</code>

We have also turned off the builtin default right side TOC by setting <nowiki> maxtoc=0 in the configuration </nowiki> The builtin TOC is controlled with the maxtoc, mintoc and notoc settings. See [[https://www.dokuwiki.org/toc|https://www.dokuwiki.org/toc]] We can turn TOC off completely under config settings or by page using notoc command.

We have also plugin»indexmenu»only_admins warning (unchecked) because @Manager users were not able to add {{indexmenu_n>5}} and it disappeared immediately when edited. "Allow indexmenu syntax only to admins. Note that a page edited by a no-admin user will lost every contained indexmenu tree." We want Manager group to be able to edit and add {{indexmenu_n>3}} to sort pages. Currently they will be able to edit/add index TOC as well.

Right now we have made "blank" pages to force all Pages to show as "Namespaces" with pages below, just so they all sort properly. Now we would like to know if we can "HIDE" or skip all pages named "BLANK" easily.
Is there a way to skip "blank" pages? plugin»indexmenu»skip_file Pages id to skip. - Is there a way to set this to skip pages named "blank"

Of course a simple option for force sorting both namespaces and pages would be mch easier! 
NOTE: I have found some snippets of php code that we might be able to insert into the IndexMenu php code to force it to interleave Namespaces and Pages.



==== Process to Setup the Right Navigation TOC ====

IndexMenu Plugin has been added to the wiki now. From the Edit menu we can select the "Insert the IndexMenus Tree" icon and pick the namespace and the depth of the tree etc.

Now I would like to get this indexmenu into a left column.

  - The default theme supports a left column.
  - Make a page "sidebar" under the namespace desired,
  - Insert an Indexmenu instancee (use left side icon in edit toolbar).

======   ======

[[http://zigi.cc.fmph.uniba.sk/dokuwiki/wiki/indexmenu|http://zigi.cc.fmph.uniba.sk/dokuwiki/wiki/indexmenu]] How can I activate the indexmenu as sidebar for every page?

Indexmenu itself does not provide sidebars, you need a template that supports it. You can find them in templates page. Look for a template that uses a page as sidebar, so that indexmenu loading will be faster thanks to dokuwiki cache. Mine is the arctic template. — Samuele Tognini 2007-02-06 11:58

<code>
                  # my page "sidebar" has only this entry:
                  {{indexmenu>.|js#kde.png navbar}}
</code>

<code>
                  # in
                  conf/local.php
                  # I added the entry
                  $conf['template'] = 'sidebar';
</code>

<code>
                  I use the kde-theme; it looks really great!
</code>

One more question? Where does the sidebar page go? It depends on template. For example, the arctic template lets admin to choose any wanted dokuwiki page as sidebar. undefined method syntax_plugin_indexmenu::getConf()

======   ======

About our default template

[[https://www.dokuwiki.org/template:dokuwiki|https://www.dokuwiki.org/template:dokuwiki]]

Most templates use a normal wiki page called “sidebar” for the sidebar. Some make this configurable, so you can choose the name of the page. (E.g. since Adora Belle there is the sidebar config option which some templates support.) And others have several sidebars, each of which will have their own page, sometimes even depending on namespaces.

In the most likely event that your sidebar is a page called “sidebar”, you just need to create it. Go to [[http://your-wiki.com/doku.php?id=sidebar|http://your-wiki.com/doku.php?id=sidebar]], click “Create this page”, edit the page, save, and you're done. That's it, your saved changes will appear in your sidebar. How can I have an automatic navigation in my sidebar?

Best install one of the plugins tagged with 'menu' or plugins tagged with 'navigation'.

In many cases you will also need to add the ~~NOCACHE~~ macro when using a plugin which changes the sidebar's appearance per page or namespace. My sidebar doesn't update properly or highlights the wrong parts

If your sidebar contains dynamic elements (e.g. highlighting of the current page or opening of a sub list, like a lot of navigation plugins do), then you need to add the ~~NOCACHE~~ macro to your page to prevent caching of the sidebar.

[[https://tgp-architects.com/dokuwiki/|https://tgp-architects.com/dokuwiki/]]

===

[[https://forum.dokuwiki.org/thread/13902|https://forum.dokuwiki.org/thread/13902]]

======   ======

Do I really need the overlay plugin? [[https://forum.dokuwiki.org/thread/13902|https://forum.dokuwiki.org/thread/13902]] [[https://www.dokuwiki.org/plugin:overlay|https://www.dokuwiki.org/plugin:overlay]]

======   ======

